<template>
  <div class="pageTools-container">
    <el-card>
      <div class="box">
        <div class="left" >
          <div class="leftcontent" v-if="showleft">
            <i class="el-icon-info"></i>
            <slot name="left">
              <span>本月：社保在缴 公积金在缴 增员 减员 入职 离职</span>
            </slot>
          </div>
        </div>
        <div class="right">
          <slot name="right">
            <el-button type="primary" size="mini">历史归档</el-button>
            <el-button type="primary" size="mini">导出</el-button>
          </slot>
        </div>
      </div>
    </el-card>
  </div>
</template>

<script>
export default {
  name: "pageTools",
  //   控制左侧结构的显示与隐藏
  props: ["showleft"],
};
</script>

<style lang='scss'>
.pageTools-container {
  .box {
    display: flex;
    justify-content: space-between;
    align-content: center;
    .left {
      .leftcontent {
        border: 1px solid #c8ebff;
        font-size: 14px;
        background-color: #e6f7ff;
        padding: 10px;
        i {
          margin-right: 10px;
          color: #499eff;
        }
      }
    }
  }
}
</style>